<?php

namespace backend\models;

use Yii;

/**
 * This is the model class for table "e_node".
 *
 * @property integer $node_id
 * @property string $node_name
 * @property string $controller
 * @property string $action
 */
class Node extends \yii\db\ActiveRecord
{

    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'e_node';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['node_name', 'controller', 'action'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'node_id' => 'Node ID',
            'node_name' => '权限名称',
            'controller' => '控制器',
            'action' => '方法',
        ];
    }
}
